import request from "@/utils/request";

export function addMyArticleAPI(data){
    return request({
        url:'/user/addMyArticle',
        method:'POST',
        data
    })
}

export function updateMyArticleAPI(data){
    return request({
        url:'/user/updateMyArticle',
        method:'PUT',
        data
    })
}

export function getMyArticleAPI(data){
    return request({
        url:'/user/getMyArticle',
        method:'GET',
        params:data
    })
}

export function deleteMyArticleAPI(id){
    return request({
        url:'/user/deleteMyArticle/'+id,
        method:'DELETE',
    })
}